
func int C_WantToFlee(var C_Npc slf,var C_Npc oth)
{
	if((slf.aivar[98] == TRUE) && (ORCSWINSBB == TRUE) && (BIGBATTLEBACKPOSITION == FALSE))
	{
		if(slf.aivar[99] == FALSE)
		{
			Npc_ExchangeRoutine(slf,"FleeFromBattle");
			slf.aivar[99] = TRUE;
			if((slf.aivar[93] == TRUE) && ((Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(PC_Mage_NW)) || (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(PC_Psionic)) || (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(PC_ThiefOW)) || (Hlp_GetInstanceID(slf) != Hlp_GetInstanceID(PC_Fighter_NW_nach_DJG))))
			{
				slf.aivar[93] = FALSE;
			};
		};
		if((slf.aivar[99] == TRUE) && (Npc_GetDistToWP(slf,"NW_BIGFARM_PATH_04") <= 1500))
		{
			return FALSE;
		};
		return TRUE;
	};
	return FALSE;
};

